<template>
	<view class="temp">
		<view class="center"><image :src="src" width="100%" mode="widthFix" /></view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			src: ''
		};
	},
	onReachBottom() {
		//uniapp 监听下拉加载生命周期
		// scrollDownPage();
	},
	onShow(){
		let is_login = uni.getStorageSync('user_token') ? true : false;
		
		if(!is_login){
			uni.navigateTo({
				url:'../profile/user_login'
			})
		}
	},
	methods: {
		onLoad(query) {
			this.src = query.src;
		}
	}
};
</script>

<style>
.center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
</style>
